package test;

import com.bitcola.dataservice.OtcServiceApplication;

import com.bitcola.me.entity.ColaCoinSymbol;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


/*
 * @author:wx
 * @description:
 * @create:2018-08-30  22:00
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = OtcServiceApplication.class,webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class test {


    @Autowired
    ColaCoinSymbolMapper colaCoinSymbolMapper;


    @Test
    public void test1() throws Exception{
        //AppResponse eos_usdt = colaExchangeController.kline(null, 1551425745441L, 1551785745441L, 400, "15m", "EOS_USDT");
        //System.out.println(eos_usdt);
        ColaCoinSymbol symbol=new ColaCoinSymbol();
        symbol.setCoinCode("BTC");
        symbol.setSymbol("USDT");
        var ccc= colaCoinSymbolMapper.selectOne(symbol);
        var coin=colaCoinSymbolMapper.getSymbol("USDT","BTC");
        System.out.println(coin);


    }
//    @Test
//    public void test2() throws Exception{
//        BaseContextHandler.setUserID(UserConstant.SYS_ADMIN);
//
//    }






}
